<h2><?php echo ( $this->type > 1 ) ? $this->translate( 'manufacturers_header' ) : $this->translate( 'relation_header' ) ?></h2>
<div id="manu">
<?php 

  
    $i = 0; 
    $c = 0;
    $l = 0;
    $count = count($this->list);
    $lines = ceil($count / 3) - 1;
    foreach( $this->list as $value ) 
    { 
      
     if($i==0)
     {
      if($l != $lines)
        echo('
         <div class="main border">
        ');
      else
        echo('
         <div class="main">
        ');        
     }
      if($i==1)
      {
       echo('
          <div class="box center"  style="margin-top:0px">
       ');
      } else
       echo('
          <div class="box" style="margin-top:0px">
       ');
       
   $explode = explode(".", $value['logo']);
   echo '<br>';
   echo '<div style="width:170px; height:170px; background: url(' . $this->File( $value['logo'], 170 ) . ' ) center center no-repeat #101010; margin:0 auto"></div>';
   
   echo '<br /><a href="'.$this->baseUrl().'/shop/producer/id/'.$value['m_id'].'/'.$value['name_pl'].'.html"><b>'.$value['name_pl'].'</b></a>';
       
       echo('  </div>'); 
       
    if($c==$count-1 && $i!=2)
      echo('
      <div class="clear"></div> <!-- wyrównanie floata -->
      </div> <!-- domkniecie "main2" -->
      ');   
     $i++;
     if($i==3)
     {
      echo('
       <div class="clear"></div> <!-- wyrównanie floata -->
       </div> <!-- domkniecie "main" -->
       
      ');
      $i = 0;
      $l++;
     }
     
     $c++;
     
    } 
?>

</div>
<?php  //echo $this->render('global/pager_service.phtml'); ?>